using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using PowerManage.Entity.Enums;

namespace PowerManage.Entity;

/**
 * 角色实体
 */
public class EleRole : IdentityRole<long> {
    [Comment("创建者Id")] public long CreatorId { get; set; }

    [Comment("创建时间")] public DateTime CreationTime { get; set; } = DateTime.Now;

    [Comment("最后编辑时间")] public DateTime LastModificationTime { get; set; }
    [Comment("状态，0：禁用，1：正常")] public RoleStatus Status { get; set; }

    [MaxLength(500)] [Comment("备注")] public string? Remark { get; set; }
}